window.onload = function () {
    var mydiv = document.getElementById("mydiv");
    console.log(mydiv);
};
